<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>15_语法-v-bind直接绑定对象</title>
</head>
<body>

  <div id="app">
    <h3 :name="infos.name" :age="infos.age" :height="infos.height">Hello World</h3>

    <!-- v-bind绑定对象: 给组件传递参数 -->
    <h3 v-bind="infos">Hello World</h3>
  </div>
  <script src="../lib/vue.js"></script>

  <script>
    const { createApp, reactive } = Vue

    const app = createApp({
      setup() {
        const infos = reactive({
          name: "why",
          age: 18,
          height: 1.88
        })

        return {
          infos
        }
      }
    })

    app.mount("#app")

  </script>
  
</body>
</html>